<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $conracts = query('SELECT recipt_vouchers.*,contracts.contract_id As contract__id,contracts.contract_status 
      FROM recipt_vouchers LEFT JOIN contracts ON recipt_vouchers.contract_id = contracts.contract_id 
      WHERE recipt_vouchers.recipet_id= ?',$_GET['id']);
    $recipt = $conracts[0];
    
    renderWithoutHeader("recipt_vouchers/view.php", array("recipt"=>$recipt,"payment_method"=>$payment_method));
    
  }  

?>